package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生考题表对象 student_subject
 * 
 * @author ruoyi
 * @date 2022-11-20
 */
public class StudentSubject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生id */
    @Excel(name = "学生id")
    private Long studentId;

    /** 考试id */
    @Excel(name = "考试id")
    private Long examId;

    /** 考卷id */
    @Excel(name = "考卷id")
    private Long subjectId;

    /** 选择答案 */
    @Excel(name = "选择答案")
    private String answer;

    /** 提交时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    /** 耗时 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "耗时", width = 30, dateFormat = "yyyy-MM-dd")
    private Date costTime;

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setSubjectId(Long subjectId) 
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId() 
    {
        return subjectId;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setSubmitTime(Date submitTime) 
    {
        this.submitTime = submitTime;
    }

    public Date getSubmitTime() 
    {
        return submitTime;
    }
    public void setCostTime(Date costTime) 
    {
        this.costTime = costTime;
    }

    public Date getCostTime() 
    {
        return costTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("studentId", getStudentId())
            .append("examId", getExamId())
            .append("subjectId", getSubjectId())
            .append("answer", getAnswer())
            .append("submitTime", getSubmitTime())
            .append("costTime", getCostTime())
            .toString();
    }
}
